package com.wicket.okrrbff.web.contorller;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrrbff.biz.service.OssService;
import com.wicket.okrrbff.biz.service.dto.req.*;
import com.wicket.okrrbff.biz.service.dto.res.*;
import com.wicket.okrrbff.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.wicket.okrcomponent.integration.FwCompOssClient;
import com.wicket.okrcomponent.integration.dto.QueryObjectStorageTemporaryCredentialsDetailComRespDto;
import com.wicket.okrcomponent.integration.dto.QueryObjectStorageTemporaryCredentialsDetailComReqDto;
import com.wicket.okrcomponent.integration.dto.QueryStorageTemporaryCredentialsDetailComRespDto;
import com.wicket.okrcomponent.integration.dto.QueryStorageTemporaryCredentialsDetailComReqDto;
import com.wicket.okrrbff.common.exception.Assert;
import com.wicket.okrrbff.common.util.CommonFunctionHelper;
import com.wicket.okrcomponent.integration.FwCompResourceFileClient;
import com.wicket.okrcomponent.integration.dto.LoopSetResourceFileComRespDto;
import com.wicket.okrcomponent.integration.dto.LoopSetResourceFileComReqDto;

/**
 * @author ：
 * @date ：
 * 
 *
 * @version 1.0
 */
@Api(value = "Oss", tags = { "Oss" })
@RestController
// @RequestMapping("/rbff/oss/")
public class OssController {

  @Autowired
  OssService ossService;
/**
   * B2查询对象存储临时令牌详情
   * gen by moon at 11/22/2024, 11:30:31 AM
   */
    @PostMapping("/oms/dataassets/oss/queryObjectStorageTemporaryCredentialsDetail")
    @ApiOperation(value = "B2查询对象存储临时令牌详情", response = OkrResult.class)
    public OkrResult<BffQueryObjectStorageTemporaryCredentialsDetailRespDto> queryObjectStorageTemporaryCredentialsDetail(@RequestBody(required=false) @Validated BffQueryObjectStorageTemporaryCredentialsDetailReqDto reqDTO){
        return OkrResult.success(ossService.queryObjectStorageTemporaryCredentialsDetail(reqDTO));
    }
}
